Feature: 罗列未付款的咨询
  作为一个律团用户
  我可以浏览未付款的咨询
  这样我可以进行付款
  
Background:
Given http "accept" header is "application/json"
  And I make a "post" request to "login" with:
  | username    | password   |
  | 13702325511 | 123456   |
  And the response is in "json" format
  And http "authorization" header exists

Scenario: 普通用户可以罗列未付款的咨询
When there is a "pay_text" request with status "wait_pay"
And I "view" this request with route "center.order.list"
Then the response status code should be 200
And the response is in "json" format
And the "pay_text" request with status "wait_pay" is in the first place of the list

Scenario: 只有未付款的咨询会出现在我的商品列表中

Scenario: 普通用户可以使用付款的咨询
When there is a "pay_text" request with status "wait_pay"
And I make a "post" request to "wallet/recharge" with:
  | money    |
  | 10000    |
When I "pay" this request with route "center.question.pay.wallet"
Then the response status code should be 200
And the status of the request is "new"